#ifndef _EMITTER_2D_H_
#define _EMITTER_2D_H_

#include "particle_2d.h"

namespace LuaPlus
{
    class LuaObject;
};


namespace part2d
{

class Emitter2D
{
public:
                    Emitter2D();
    virtual         ~Emitter2D();
    virtual bool    Load(LuaPlus::LuaObject& _LObj);

	virtual void            SetupParticle(const math::Vec2& Pos, Particle2D* pPart);
    
protected:
    math::Vec2      m_MinForce, m_MaxForce;
    float           m_MaxLife, m_MinLife;
    float           m_MinSizeStart, m_MaxSizeStart;
    float           m_MinSizeEnd, m_MaxSizeEnd;
    float           m_Range;
	float			m_MinMag, m_MaxMag;
};

};

#endif //_EMITTER_2D_H_